<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>

<script type="text/javascript">
	function appBack() {
		document.location.href='#';
	}
</script>

<script type="text/javascript" src="${requestScope.contextPath}/js/cubiq-iscroll/iscroll.js"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', { 
		checkDOMChanges: true,
		zoom: false
	});
	<c:if test="${param.endY != null and param.endY != ''}">
		myScroll.scrollTo(0, ${param.endY}, 0);
		endY = ${param.endY};
	</c:if>
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
window.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);

</script>

<style type="text/css" media="all">
/*원본 : #wrapper { position:absolute; z-index:1; top:90px; bottom:0px; left:0; width:320px; overflow:auto; }*/
#wrapper { position:absolute; z-index:1; top:90px; bottom:0px; left:0; width:100%; overflow:auto; }
#scroller { position:absolute; -webkit-tap-highlight-color:rgba(0,0,0,0); width:100%; padding:0; background:#fff; }
</style>
</head>


<body>
	<div id="wrap">
		<div class="header">
			<h1>출입관리</h1>
			<p class="list"><a href="${requestScope.contextPath}/business/mAccessMan/mAccessManApplySearch.do"><img src="../../images/btn/btn_search3.gif" alt="검색" /></a></p>
			<ul class="tab">
				<li><a href="${requestScope.contextPath}/business/mAccessMan/mAccessManApplyWrite.do"><img src="${requestScope.contextPath}/images/access/tab1.gif" alt="방문객 등록" /></a></li>
				<li><a href="${requestScope.contextPath}/business/mAccessMan/mAccessManApplyList.do"><img src="${requestScope.contextPath}/images/access/tab2_over.gif" alt="나의 신청현황" /></a></li>
			</ul>
		</div><!-- // header -->	
			<div id="wrapper" class="access">
			<div id="scroller">
				<ul class="news">
					<c:forEach items="${mapList}" var="mapInfo" varStatus="status">
					<li><a href="${requestScope.contextPath}/business/mAccessMan/mAccessManApplyView.do?ApplySeq=${mapInfo.APPLY_SEQ}"><span class="bold">${mapInfo.RESERVATION_DATE }</span><span class="date1">${mapInfo.VISITOR_NAME }, ${mapInfo.VISITOR_COMP_NAME }</span></a>
					<span class="status">
					<c:choose>
					<c:when test="${mapInfo.VISITOR_STATUS == '01'}">
						미방문
					</c:when>
	       			<c:when test="${mapInfo.VISITOR_STATUS == '02'}">
						방문중
					</c:when>
					<c:when test="${mapInfo.VISITOR_STATUS == '03'}">
						방문완료
					</c:when>
					<c:when test="${mapInfo.VISITOR_STATUS == '99'}">
						분실
					</c:when>
					</c:choose>
					</span>
					</li>
					</c:forEach>
					<c:if test="${empty mapList}">
					<li>일치하는 자료가 없습니다.</li>
					</c:if>
				</ul>
			</div>
		</div>
		<!-- // content -->
	</div><!-- // wrap -->
	<script>
		window.HybridApp.clearAllHistory(); 
	</script>
</body>
</html>
